import React from 'react'
import {Route, IndexRoute} from 'react-router'

import {
    App,
    Home,  //主页
    IllegalDetailList,//违章列表
    CarDetail,//车辆详情
    AddMessage,//补充资料
    OrderList,//订单列表
    AddCar,//添加车辆
    Payment, //订单确认
    PaySuccess, //支付成功
    OrderDetail , //详情页
    UpdateMessage,//更新资料页
} from './containers'

export default (
    <Route path="/" component={App}>
        <IndexRoute component={Home}/>
       <Route path="home" components={Home}/>
        <Route path="illegalDetailList/:carId/:carNumber" components={IllegalDetailList}/>
        <Route path="carDetail/:carId" components={CarDetail}/>
        <Route path="addMessage/:carId" components={AddMessage}/>
        <Route path="updateMessage/:carId" components={UpdateMessage}/>
        <Route path="orderList" components={OrderList}/>
        <Route path="addCar" components={AddCar}/>
        <Route path="payment" components={Payment}/>
        <Route path="paySuccess" components={PaySuccess}/>
        <Route path="orderDetail/:orderId/:chargeId" components={OrderDetail}/>
    </Route>
);